<?php
/**
 * metadata constant
 *
 * @author fusq
 */
class MetadataConstant {

     public static function getInputTypeList(){
        $translate = Zend_Registry::get('Zend_Translate');
        $inputType = array(
                    1 => $translate->_('textField'),
                    2 => $translate->_('textArea'),
                    3 => $translate->_('dropDown'),
                    4 => $translate->_('multipleSelect'),
                    5 => $translate->_('valueField'),
                    6 => $translate->_('colorField')
                 );
        return $inputType;
     }

     public static function getInputType($key){
        $inputType = MetadataConstant::getInputTypeList();
        return $inputType[$key];
     }

     public static function getLevelList(){
        $translate = Zend_Registry::get('Zend_Translate');
        $level = array(
                    1 => $translate->_('productLevel'),
                    2 => $translate->_('itemLevel')
                 );
        return $level;
     }

     public static function getLevel($key){
        $level = MetadataConstant::getLevelList();
        return $level[$key];
     }

     public static function getDefaultChequeRuleList(){
        $translate = Zend_Registry::get('Zend_Translate');
        $chequeRule = array(
                    1 => $translate->_('chequeRule1'),
                    11 => $translate->_('chequeRule11'),
                    12 => $translate->_('chequeRule12'),
                    13 => $translate->_('chequeRule13'),
                    14 => $translate->_('chequeRule14'),
                    15 => $translate->_('chequeRule15'),
                    2 => $translate->_('chequeRule2'),
                    21 => $translate->_('chequeRule21'),
                    22 => $translate->_('chequeRule22'),
                    23 => $translate->_('chequeRule23'),
                    24 => $translate->_('chequeRule24'),
                    25 => $translate->_('chequeRule25'),                                                                                                    
                    3 => $translate->_('chequeRule3'),
                    //4 => $translate->_('chequeRule4')
                 );
        return $chequeRule;
     }
     public static function getDefaultPriceRuleList(){
        $translate = Zend_Registry::get('Zend_Translate');
        $priceRule = array(
                    1 => $translate->_('priceRule1'),
                    2 => $translate->_('priceRule2')
                 );
        return $priceRule;
     }
     public static function getDefaultShipRuleList(){
        $translate = Zend_Registry::get('Zend_Translate');
        $shipRule = array(
                    1 => $translate->_('shipRule1'),
                    2 => $translate->_('shipRule2'),
                    3 => $translate->_('shipRule3')
                 );
        return $shipRule;
     }
     public static function getDefaultRelatedRuleList(){
        $translate = Zend_Registry::get('Zend_Translate');
        $relatedRule = array(
                    1 => $translate->_('relatedRule1'),
                    2 => $translate->_('relatedRule2'),
                    3 => $translate->_('relatedRule3'),
                    4 => $translate->_('relatedRule4'),
                    5 => $translate->_('relatedRule5')
                 );
        return $relatedRule;
     }

}